import request from '@/utils/request'

export const loginApi = (data) => {
  return request({
    url: '/sys/login',
    method: 'post',
    data: data
  })
}

export const getUserInfoApi = () => {
  return request({
    url: '/sys/profile'
  })
}

// 更新密码
export const updatePassword = (data) => {
  return request({
    url: '/sys/user/updatePass',
    method: 'put',
    data
  })
}
